package com.emm.yixun.customer.service;
import javax.jws.WebService;

import com.emm.yixun.common.model.ProjectQuestion;
import com.emm.yixun.common.model.ProjectQuestionInfo;
import com.emm.yixun.common.model.dto.ProjectQuestionDto;
import com.emm.yixun.common.page.Page;
import com.emm.yixun.common.response.Response;
import com.emm.yixun.common.response.ResponseList;
@WebService
public interface ProjectQuestionServiceFacade{
     	/**
	    *新增
	    */
		Response<ProjectQuestionDto> save(ProjectQuestionDto dto);
		
		/**
		*修改,当selective=true时修改非空列,当selective=false修改所有列
		*/
		Response<Integer> updateByPrimaryKey(ProjectQuestionDto dto,Boolean selective);
		
		/**
		 *逻辑删除
		 */
		Response<Integer> deleteByPrimaryKey(Long id);
		
		/**
		 *主键查询
		 */
		Response<ProjectQuestion> findById(Long id);
		
		/**
		 *根据dto查询记录
		 */
		ResponseList<ProjectQuestion> findByDto(ProjectQuestionDto dto);
		/**
		 *根据dto以及分页参数查询记录
		 */
		Page<ProjectQuestion> findPageByDto(ProjectQuestionDto dto,Integer begin,Integer row);
		
		/**
		 *根据dto查询记录
		 */
		ResponseList<ProjectQuestionInfo> questionList(ProjectQuestionDto dto);
		
		/**
		 *根据dto查询记录
		 */
		ResponseList<ProjectQuestionInfo> questionAyalyzeList(ProjectQuestionDto dto);
		
		/**
	     *新增及修改问卷
	     */
		Response<String> saveQuestionnaire(ProjectQuestionInfo dto);
		
		/**
         *查询标签ID
         */
        Response<String> getCusTagList(ProjectQuestionDto dto, Long customerId);
}
